home *** CD-ROM | disk | FTP | other *** search
/ APDL Other Worlds / APDL Other Worlds Collection.iso / SF3000 / Extras / !SFtoSpr / h / Utils < prev   
Encoding:
Text File  |  2003-11-06  |  1.6 KB  |  53 lines

  1. /*
  2.  *  SFtoSpr - Star Fighter 3000 graphics converter
  3.  *  Utility functions
  4.  *  Copyright (C) 2000  Chris Bazley
  5.  */
  6.  
  7. #ifndef STSUtils_h
  8. #define STSUtils_h
  9.  
  10. #include <stdbool.h>
  11.  
  12. #include "kernel.h"
  13. #include "toolbox.h"
  14. #include "event.h"
  15.  
  16. #include "Loader.h"
  17. #include "SprFormats.h"
  18. #include "SFformats.h"
  19.  
  20. /* Generic handler for deleting an object */
  21. extern ToolboxEventHandler delete_object_handler;
  22.  
  23. /* Allocate buffer and load animations textfile */
  24. extern LoaderFileHandler load_animations, load_compressed, load_sprites;
  25.  
  26. /* Load animations textfile given explicit filepath */
  27. extern _kernel_oserror *load_animsfilepath(char *filepath, SF_MapTilesSetHdr **getanimations, bool err_if_absent);
  28.  
  29. /* Write textfile with animations */
  30. extern _kernel_oserror *save_animsfile(char *filepath, SF_MapTilesSetHdr *putanimations);
  31.  
  32. /* copy string into newly allocated memory */
  33. extern char *copystring(char *string);
  34.  
  35. extern _kernel_oserror *showgadget(ObjectId window, ComponentId gadget);
  36.  
  37. extern _kernel_oserror *hidegadget(ObjectId window, ComponentId gadget);
  38.  
  39. extern _kernel_oserror *set_gadget_faded(bool fade, ObjectId id, ComponentId gad);
  40.  
  41. extern _kernel_oserror *getscreencentre(int *centreX,int *centreY);
  42.  
  43. extern char *tail(char *filepath, int length);
  44.  
  45. extern bool check_animations(SF_MapTilesSetHdr **hdr);
  46. extern bool contains_valid_tiles(spriteareaheader **sa);
  47. extern bool contains_valid_planets(spriteareaheader **sa);
  48. extern bool dialogue_confirm(const char *mess);
  49.  
  50. extern _kernel_oserror *open_above_iconbar(unsigned int flags, ObjectId id, ObjectId parent, ComponentId parent_component);
  51.  
  52. #endif
  53.